﻿@model EdexApiClient.LOCATION_MAP

@{
    var RIGHT_LOCATION_GUID = "";
    var RIGHT_LOCATION_NAME = "";

    if (Model.RIGHT_LOCATION_MAP != null) 
    {
        RIGHT_LOCATION_GUID = Model.RIGHT_LOCATION_MAP.GUID_RECORD.ToString();
        RIGHT_LOCATION_NAME = Model.RIGHT_LOCATION_MAP.LOCATION_NAME;                
    }    
}

<form name="LOCATIONS_MAPPING" class="form-horizontal" method="post"> 
    <fieldset> 
                
        <input type="hidden" name="RIGHT_LOCATION_GUID" value="@RIGHT_LOCATION_GUID">
        <input type="hidden" name="LEFT_LOCATION_GUID" value="@Model.LEFT_LOCATION_MAP.GUID_RECORD">

        <div class="control-group"> 
            <label class="control-label" for="COMPANY_NAME">Компания</label>
            <div class="controls">
                <input type="text" class="input-xlarge" value="@Model.LEFT_LOCATION_MAP.COMPANY.COMPANY_NAME" readonly="readonly" />
            </div> 
        </div> 
                
        <div class="control-group"> 
            <label class="control-label" for="LOCATION_NAME">Наименование</label>
            <div class="controls">
                <input type="text" class="input-xlarge" value="@Model.LEFT_LOCATION_MAP.LOCATION_NAME" readonly="readonly" />
            </div> 
        </div> 
                
        <div class="control-group"> 
            <label class="control-label" for="LOCATION_NAME">Соответствие</label>
            <div class="controls">
                <input type="text" class="input-xlarge" name="LOCATION_NAME" value="@RIGHT_LOCATION_NAME" />
            </div> 
        </div> 

    </fieldset>
</form>